@import 'variables.scss';

/******************************
 SECOND IMAGE
*******************************/
.product-grid-second-image .product-grid-item, .product-list-second-image .product-list-item{
  .image {
    > a.has-second-image {
      background-size: 100% !important;
    }
  }
  &:hover .image > a.has-second-image > img{
    opacity: 0;
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
    transition: opacity .2s ease-out;
  }
}

.section-brand,
.section-category,
.carousel-brand,
.carousel-category,
.side-column{
  .product-grid-item, .product-list-item{
    &:hover .image > a.has-second-image > img{
      opacity: 1;
      -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
      transition: opacity 0;
    }
  }
}

/******************************
 NOTIFICATION
*******************************/

  .ui-pnotify {
    top: 20px;
    right: 20px;
    position: fixed;
    height: auto;
    z-index: 9999;
    background-color:$f4;
    padding: 10px;
  }

  .ui-pnotify-closer {
    width: 30px;
    height: 30px;
    position: absolute;
    right: 7px;
    top: 15px;
    visibility: visible !important;
    transition: all 0.2s;
    opacity: 0;
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
    &:before{
      content: "\e601";
      color: inherit;
      font-size: 22px;
      position: relative;
    }
  }

  .ui-pnotify-title {
    display: block;
    background-color: $gray;
    padding: 8px 8px 9px 10px;
    margin-bottom: 10px;

  }

  .ui-pnotify-text {
    height: 60px;
    line-height: 16px;
    img{
      float: left;
      margin-right: 10px;
      max-width: 60px;
    }
    display: block;
  }


  /******************************
  PHOTO GALLERY
  *******************************/

  html.swipebox {
    overflow: hidden!important;
    overflow-y: scroll !important;
  }

  #swipebox-overlay {
    background-repeat: no-repeat;
    background-position: center;
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99999!important;
    overflow: hidden;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
  }

  #swipebox-slider {
    height: 100%;
    left: 0;
    top: 0;
    width: 100%;
    white-space: nowrap;
    position: absolute;
    display: none;
  }

  #swipebox-slider .slide {
    background-repeat: no-repeat;
    background-position: center;
    height: 100%;
    width: 100%;
    line-height: 1px;
    text-align: center;
    display: inline-block;
  }

  #swipebox-slider .slide:before {
    content: "";
    display: inline-block;
    height: 50%;
    width: 1px;
    margin-right: -1px;
  }

  #swipebox-slider .slide img,
  #swipebox-slider .slide .swipebox-video-container {
    display: inline-block;
    max-height: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    width: auto;
    height: auto;
    vertical-align: middle;
  }

  #swipebox-slider .slide .swipebox-video-container {
    background:none;
    max-width: 1140px;
    max-height: 100%;
    width: 100%;
    padding:5%;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
  }


  #swipebox-slider .slide .swipebox-video-container .swipebox-video{
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    overflow: hidden;
    position: relative;
  }

  #swipebox-slider .slide .swipebox-video-container .swipebox-video iframe{
    width: 100%!important;
    height: 100%!important;
    position: absolute;
    top: 0; left: 0;
  }

  #swipebox-action, #swipebox-caption {
    position: absolute;
    left: 0;
    z-index: 999;
    height: 50px;
    width: 100%;
  }

  #swipebox-action {
    bottom: -50px;
  }
  #swipebox-action.visible-bars {
    bottom: 0;
  }

  #swipebox-action.force-visible-bars {
    bottom: 0!important;
  }

  #swipebox-caption {
    top: -50px;
    text-align: center;
  }
  #swipebox-caption.visible-bars {
    top: 0;
  }

  #swipebox-caption.force-visible-bars {
    top: 0!important;
  }


  #swipebox-action #swipebox-prev.disabled,
  #swipebox-action #swipebox-next.disabled {
    filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=30);
    opacity: 0.3;
  }

  #swipebox-slider.rightSpring {
    -moz-animation: rightSpring 0.3s;
    -webkit-animation: rightSpring 0.3s;
  }

  #swipebox-slider.leftSpring {
    -moz-animation: leftSpring 0.3s;
    -webkit-animation: leftSpring 0.3s;
  }

  @-moz-keyframes rightSpring {
    0% {
      margin-left: 0px;
    }

    50% {
      margin-left: -30px;
    }

    100% {
      margin-left: 0px;
    }
  }

  @-moz-keyframes leftSpring {
    0% {
      margin-left: 0px;
    }

    50% {
      margin-left: 30px;
    }

    100% {
      margin-left: 0px;
    }
  }

  @-webkit-keyframes rightSpring {
    0% {
      margin-left: 0px;
    }

    50% {
      margin-left: -30px;
    }

    100% {
      margin-left: 0px;
    }
  }

  @-webkit-keyframes leftSpring {
    0% {
      margin-left: 0px;
    }

    50% {
      margin-left: 30px;
    }

    100% {
      margin-left: 0px;
    }
  }

  /* Skin
  --------------------------*/
  #swipebox-overlay {
    background: rgba(0,0,0,.6);
  }

  #swipebox-action, #swipebox-caption {
    text-transform: uppercase;
    background-color: $dark;
  }

  #swipebox-caption {
    font-size: 18px;
    line-height: 50px;
    -webkit-font-smoothing:antialiased;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
  }

  #swipebox-prev, #swipebox-next, #swipebox-close {
    border: none!important;
    text-decoration: none!important;
    text-align: center;
    color: white;
    cursor: pointer;
    position: absolute;
    padding: 0 5px;
    line-height: 50px;
  }

  #swipebox-close {
    right: 10px;
    z-index: 999999;
    &:before{
      color: inherit;
      content: "\e601";
      font-size: 32px;
    }
  }

  #swipebox-prev {
    left: 50%;
    margin-left: -35px;
    &:before{
      color: inherit;
      content: "\e093";
      font-size: 32px;
    }
  }

  #swipebox-next {
    left: 50%;
    margin-left: 5px;
    &:before{
      color: inherit;
      content: "\e094";
      font-size: 32px;
    }
  }

@media only screen and (min-width: 1024px) {
  #swipebox-close {
    right: 20px;
  }
}

  /******************************
   STICKY HEADER DEFAULT
  *******************************/

  .sticky-header{
    position: fixed;
    top: -40px;

    //Default
    .journal-login, .journal-links{
      display: none;
    }
    .j-tall{
      height: 80px;
    }

    .journal-cart{
      width: 35%;
    }
    #cart{
      box-shadow: none;
      .content{
        min-width: 100%;
      }
    }
    #logo a {
      height: 80px;
      img {
         max-height: 80px;
      }
    }
    .journal-search{
      position: relative;
      width: 40%;
    }
    .button-search{
      border-left: 1px solid $e4;
    }
    .autocomplete2-suggestions{
      box-shadow: 0 1px 8px -5px rgba(0, 0, 0, 0.5);
    }
    //Menu
    &.journal-header-menu #logo a img{
      max-height: 100%;
    }
    .journal-menu-bg, .journal-top-header{
      display: none;
    }
    .journal-menu{
      float: left;
      clear: none !important;
      width: 75%;
    }
    .mega-menu{
      left: -33.333333%;
    }
  }

  /******************************
   STICKY HEADER CENTER
  *******************************/

.sticky-header-center.journal-header-center{

  .journal-top-header, .journal-links, .journal-language, .journal-currency, .journal-secondary{
    box-shadow: none;
  }
  .j-100{
    height: 80px;
    transition: all 0.3s;
  }
  #logo a {
    height: 80px;
    img {
      max-height: 80px;
      transition: all 0.3s;
    }
  }
  .journal-menu-bg{
    top: 120px;
    transition: all 0.3s;
  }
  .journal-search, .journal-cart{
    top: 20px;
    transition: all 0.3s;
  }
}

.sticky-off {
  top: 0 !important;
  position: relative !important;
}



/******************************
SIDE BLOCKS
*******************************/

.side-block {
  z-index: 99999999;
}

.side-block-left,
.side-block-right {
  position: fixed;
  top: 220px;
  z-index: 9999;
}

.side-block-icon {
  width: 50px;
  height: 50px;
  background-position: center;
  background-repeat: no-repeat;
  line-height: 50px;
  text-align: center;
  transition: background-color 0.2s;
  i{
    margin-right: 0 !important;
  }
}

.side-block-content p {
  margin: 0;
}

.side-block-content {
  min-height: 50px;
  box-sizing: border-box;
  > div {
    position: relative;
    width: 100%;
    height: 100%;
  }
}

.side-block-left .side-block-icon {
  position: absolute;
  top: 0;
  right: -50px;
}

.side-block-right .side-block-icon {
  position: absolute;
  top: 0;
  left: -50px;
}

.side-block-content hr {
  margin-bottom: 7px;
}

.side-block-content img {
  margin: 5px 0;
  max-width: 100%;
}

.side-block-content a {
  display: inline-block;
  margin: 10px 0;
}


/******************************
SCROLL TOP
*******************************/
.scroll-top{
  display: none;
  position: fixed;
  z-index: 99;
  right: 5px;
  bottom: 0px;
  padding: 8px;
  cursor: pointer;
  &:before{
    transition:color .2s;
    content: "\e021";
    font-size: 45px;
  }
}

/******************************
BUTTON ICONS
*******************************/

.button-left-icon:before{
  float: left;
}
.button-right-icon:before{
  float: right;
}
.button-cart-text{
  position: relative;
}


/******************************
TOOLTIPS
*******************************/

[data-hint]:before{
  border: 7px solid transparent;
  display: none;
}

.hint--top:before{
  left: 50%;
  margin-left: -7px;
  border-top-color: $dark;
  margin-bottom: -13px;
}

.hint--right:before{
  margin-top: -6px;
  border-right-color: $dark;
}
.hint--left:before{
  border-left-color: $dark;
}

.hint--top:after,
.hint--top:focus:after{
  margin: 0;
  -webkit-transform: translate3d(0,0,0) translateX(-50%);
  -moz-transform: translate3d(0,0,0) translateX(-50%);
  -ms-transform: translate3d(0,0,0) translateX(-50%);
  transform: translate3d(0,0,0) translateX(-50%);
}

[data-hint]:after{
  text-shadow: none;
  color: white;
  font-family: $sans;
  text-transform: none;
  background-color: $dark;
  box-shadow:none;
  line-height: 100%;
  padding: 8px 10px;
  display: none;
}

.hint--top:hover:after,
.hint--top:focus:after{
  -webkit-transform: translate3d(0,0,0) translateY(-8px) translateX(-50%);
  -moz-transform: translate3d(0,0,0) translateY(-8px) translateX(-50%);
  -ms-transform: translate3d(0,0,0) translateY(-8px) translateX(-50%);
  transform: translate3d(0,0,0) translateY(-8px) translateX(-50%);
}
.quickview{
  .hint--top:after{
    -webkit-transform: translate3d(0,0,0) translateY(0) translateX(0);
    -moz-transform: translate3d(0,0,0) translateY(0) translateX(0);
    -ms-transform: translate3d(0,0,0) translateY(0) translateX(0);
    transform: translate3d(0,0,0) translateY(0) translateX(0);
  }
}
.quickview{
  .hint--top:hover:after,
  .hint--top:focus:after{
    -webkit-transform: translate3d(0,0,0) translateY(-8px) translateX(0);
    -moz-transform: translate3d(0,0,0) translateY(-8px) translateX(0);
    -ms-transform: translate3d(0,0,0) translateY(-8px) translateX(0);
    transform: translate3d(0,0,0) translateY(-8px) translateX(0);
  }
}

.journal-carousel{
.product-grid-item .image .wishlist a:hover:after,
.product-grid-item .image .compare a:hover:after{
    -webkit-transform: translate3d(0,0,0) translateY(-8px) translateX(0);
    -moz-transform: translate3d(0,0,0) translateY(-8px) translateX(0);
    -ms-transform: translate3d(0,0,0) translateY(-8px) translateX(0);
    transform: translate3d(0,0,0) translateY(-8px) translateX(0);
  }
}